import request from '@/utils/request'

// 查询聊天内容列表
export function listMessages(query) {
  return request({
    url: '/support/Messages/list',
    method: 'get',
    params: query
  })
}

// 查询聊天内容详细
export function getMessages(messageId) {
  return request({
    url: '/support/Messages/' + messageId,
    method: 'get'
  })
}

// 新增聊天内容
export function addMessages(data) {
  return request({
    url: '/support/Messages',
    method: 'post',
    data: data
  })
}

// 修改聊天内容
export function updateMessages(data) {
  return request({
    url: '/support/Messages',
    method: 'put',
    data: data
  })
}

// 删除聊天内容
export function delMessages(messageId) {
  return request({
    url: '/support/Messages/' + messageId,
    method: 'delete'
  })
}
